import request from '@/utils/request'

export function queryLabel(query) {
  return request({
    url: `/mes/sys/labelType/query`,
    method: 'post',
    data: query
  })
}

export function getLabel(id) {
  return request({
    url: `/mes/sys/labelType/getById/${id}`,
    method: 'get'
  })
}

export function removeLabel(data) {
  return request({
    url: `/mes/sys/labelType/delete`,
    method: 'delete',
    data: data
  })
}

export function saveLabel(data) {
  return request({
    url: `/mes/sys/labelType/save`,
    method: 'put',
    data: data
  })
}
